<header>
	<nav class="navbar navbar-default" role="navigation">
		<div class="nav-wrap" style="background-color: #4a4a4a;">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#nav-button-switch">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span> 
					<span class="icon-bar"></span> 
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="${url}"><img src="${url}/template/themes/${site.theme}/images/logo.png"></a>
			</div>
			<div class="collapse navbar-collapse" id="nav-button-switch">
				<ul class="nav navbar-nav" id="contentUL">
					<li><a href="${url}"><i class="fa fa-home fa-fw"></i> 首页</a></li>
					<?for(c in categoryList!) {?>
						<?if(isEmpty(c.sub!)){?>
						<li><a href="${ctx}/html/list_${c.id!}.html"><i class="fa fa-language"></i> ${c.title!}</a></li>
						<?} else {?>
						<li class="dropdown">
							<a href="${ctx}/html/list_${c.id!}.html" class="dropdown-toggle" data-toggle="dropdown">
								<i class="fa fa-cloud"></i> ${c.title!} <b class="caret"></b>
							</a>
							<ul class="dropdown-menu">
								<?for(c2 in c.sub!) {?>
								<li><a href="${ctx}/html/list_${c2.id!}.html">${c2.title!}</a></li>
								<?}?>
							</ul>
						</li>
						<?}?>
					<?}?>
				</ul>
				<div class="search-btn-click" id="searchInfo">
					<i id="seachform" class="fa fa-search"></i>
					<div class="header-search-slide">
						<form method="get" id="searchform-slide" class="searchform"
							action="${ctx}/article/search" role="search">
							<input type="search" name="title" placeholder="请输入搜索内容" required="">
						</form>
					</div>
				</div>
				<ul class="nav navbar-nav navbar-right" id="userCenter">
					<? DIRECTIVE SAFE_OUTPUT_OPEN ; ?>
					<?if(isEmpty(session.front_login_user.login_name!)) {?>
					<li style="background: #4a4a4a;">
						<div id="login-reg">
							<span data-sign="0" id="user-login" class="user-login ie_pie "> 登录</span> 
							<span data-sign="1" id="user-reg" class="user-reg ie_pie">注册</span>
						</div>
					</li>
					<?} else {?>
					<li class="dropdown" id="centerUser">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> Hi ${session.front_login_user.login_name!}</a>
						<ul class="dropdown-menu">
							<li><a target="_blank" href="${ctx}/rule/novel">我的采集规则</a></li>
						  	<li><a href="#">我的评论</a></li>
						  	<li><a href="#">修改密码</a></li>
						</ul>
			        </li>
		        	<div id="login-suc">
		                <span class="user-logout">退出</span>
		     		 </div>
	     		 	<?}?>
	     		 	<? DIRECTIVE SAFE_OUTPUT_CLOSE ;?>
				</ul>
			</div>
		</div>
	</nav>
</header>
<div id="sitenews-wrap">
    <div class="contextual bg-sitenews nav-wrap">
        <i class="fa fa-volume-up" style=""></i>
        <div id="news-scroll-zone">
         	<div class="news-scroll-list">
         	${blocks['top.bbs']!}
        	</div>
        </div>
    </div>
</div>